package com.youoor.domain;

import java.io.Serializable;
import java.util.Date;

public class UserCard implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -5956078727004789338L;

	private Integer cardId;

    private Integer userId;

    private String name;

    /**
     * 专业
     */
    private String occupation;
    
    /**
     * 爱好
     */
    private String hobby;


	private String location;

    private String description;

    private Integer linksize;

    private String twocode;
    
    /**
     * 页面访问总值，代表用户的人气
     */
    private long viewCount = 0;
    
    /**
     * 背景图
     */
    private String background;
    
    /**
     * 色调
     */
    private Integer styleInt=1;
    
    /**
     * 是否推荐
     */
    private Integer isRecommend= 0;
    
    private Integer cardX =0;
    
    private Integer cardY = 0;
    
    private Integer viewX=500;
    
    private Integer viewY=500;
    

	private Date ctime;

    private Date utime;

    
    public Integer getCardX() {
		return cardX;
	}

	public void setCardX(Integer cardX) {
		this.cardX = cardX;
	}

	public Integer getCardY() {
		return cardY;
	}

	public void setCardY(Integer cardY) {
		this.cardY = cardY;
	}

	public Integer getViewX() {
		return viewX;
	}

	public void setViewX(Integer viewX) {
		this.viewX = viewX;
	}

	public Integer getViewY() {
		return viewY;
	}

	public void setViewY(Integer viewY) {
		this.viewY = viewY;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}
	
    public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
    
    public String getBackground() {
 		return background;
 	}

 	public void setBackground(String background) {
 		this.background = background;
 	}

 	public long getViewCount() {
		return viewCount;
	}

	public void setViewCount(long viewCount) {
		this.viewCount = viewCount;
	}

	public Integer getStyleInt() {
 		return styleInt;
 	}

 	public void setStyleInt(Integer styleInt) {
 		this.styleInt = styleInt;
 	}
    public Integer getCardId() {
        return cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getLinksize() {
        return linksize;
    }

    public void setLinksize(Integer linksize) {
        this.linksize = linksize;
    }

    public String getTwocode() {
        return twocode;
    }

    public void setTwocode(String twocode) {
        this.twocode = twocode;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getUtime() {
        return utime;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserCard other = (UserCard) that;
        return (this.getCardId() == null ? other.getCardId() == null : this.getCardId().equals(other.getCardId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getOccupation() == null ? other.getOccupation() == null : this.getOccupation().equals(other.getOccupation()))
            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getLinksize() == null ? other.getLinksize() == null : this.getLinksize().equals(other.getLinksize()))
            && (this.getTwocode() == null ? other.getTwocode() == null : this.getTwocode().equals(other.getTwocode()))
            && (this.getCardX() == null ? other.getCardX() == null : this.getCardX().equals(other.getCardX()))
            && (this.getCardY() == null ? other.getCardY() == null : this.getCardY().equals(other.getCardY()))
            && (this.getViewX() == null ? other.getViewX() == null : this.getViewX().equals(other.getViewX()))
            && (this.getViewY() == null ? other.getViewY() == null : this.getViewY().equals(other.getViewY()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getUtime() == null ? other.getUtime() == null : this.getUtime().equals(other.getUtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCardId() == null) ? 0 : getCardId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getOccupation() == null) ? 0 : getOccupation().hashCode());
        result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getLinksize() == null) ? 0 : getLinksize().hashCode());
        result = prime * result + ((getTwocode() == null) ? 0 : getTwocode().hashCode());
        result = prime * result + ((getCardX() == null) ? 0 : getCardX().hashCode());
        result = prime * result + ((getCardY() == null) ? 0 : getCardY().hashCode());
        result = prime * result + ((getViewX() == null) ? 0 : getViewX().hashCode());
        result = prime * result + ((getViewY() == null) ? 0 : getViewY().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getUtime() == null) ? 0 : getUtime().hashCode());
        return result;
    }
}